package com.wzh.ojcodesandbox.docker;

import com.github.dockerjava.api.DockerClient;
import com.github.dockerjava.api.command.PingCmd;
import com.github.dockerjava.core.DockerClientBuilder;

/**
 * @author wzh
 * 先把程序放在linux上
 * linux Docker远程开发
 * 远程部署 :以本地代码为基础，同步到远程
 * 远程开发:以远程代码为基础
 */
public class DockerDemo {
    public static void main(String[] args) {
//        获取默认的docker client
        DockerClient build = DockerClientBuilder.getInstance().build();
        PingCmd pingCmd = build.pingCmd();
        pingCmd.exec();
    }
}
